package com.fractalist.base.core.model;

import java.util.HashMap;
import java.util.Map;

/**
 * json返回正确格式的封装对象
 * 
 * @author samoin
 * 
 */
public class JsonSuccessResponse {

	private Map<String, Object> data;

	private Boolean success = true;

	public JsonSuccessResponse() {

	}

	public Map<String, Object> getData() {
		if (data == null) {
			data = new HashMap<String, Object>();
		}
		return data;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

}
